import request from '@/utils/request'

// 查询投票列表
export function listMtVoteMain(query) {
  return request({
    url: '/main/mtVoteMain/list',
    method: 'get',
    params: query
  })
}

// 查询投票详细
export function getMtVoteMain(id) {
  return request({
    url: '/main/mtVoteMain/' + id,
    method: 'get'
  })
}

// 发送投票提醒
export function sendVoteMessage(detailId) {
  return request({
    url: '/main/mtVoteMain/sendMessage/' + detailId,
    method: 'post'
  })
}

// 保存投票
export function saveMtVoteMain(data) {
  return request({
    url: '/main/mtVoteMain/save',
    method: 'post',
    data: data
  })
}

// 删除投票
export function delMtVoteMain(id) {
  return request({
    url: '/main/mtVoteMain/' + id,
    method: 'delete'
  })
}

// 导出投票
export function exportMtVoteMain(query) {
  return request({
    url: '/main/mtVoteMain/export',
    method: 'get',
    params: query
  })
}
